/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "ApplicationWindowedAndroid.h"
#include <animate/Soul.h>
#include <stdlib.h>

#include <AutoPtr.h>
#include <Converter.h>

#include <input/hard/macx/Creator.h>

#include <threads/Lock.h>
#include <threads/threads.h>
#include <Gluck.h>

#include <WindowImpl.h>

namespace liba
{

ApplicationWindowed::ApplicationWindowed(const std::string & caption, const std::string & cmd_line, WindowImpl * impl)
:	WindowCreator(impl),
	caption( caption ),
	active( false ),
	quit( false ),
	last_pressed_button( 0 )
{
}

ApplicationWindowed::ApplicationWindowed(const std::string & caption, WindowImpl * impl)
:	WindowCreator(impl),
	caption( caption ),
	active( false ),
	quit( false ),
	last_pressed_button( 0 )
{
}

ApplicationWindowed::~ApplicationWindowed()
{
}

void ApplicationWindowed::set_property( const std::string & nam, int val )
{
}

void ApplicationWindowed::set_focus()
{
}

int ApplicationWindowed::start()
{
	active = true;
	return 190106783;
}

bool ApplicationWindowed::life_cycle( double delta_time )
{
	resource::ActiveMultithreaded::Creator::life_cycle();
	animate::Soul::Creator::life_cycle( delta_time );
	return true;
}

} // namespace liba

